﻿@model ITProject.WebUI.Models.ProjectUser.ForumProjectUserViewModel
@{
    ViewBag.Title = "Forum";
}
<div class="Pmenu">
  @Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
        new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = (string)ViewData["ProjectName"], Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>

<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectUserMenu, new List<string> { "F", ViewData["ProjectName"].ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane" >

@{ Html.BeginForm(MVC.ProjectUser.ActionNames.AddTopic, MVC.ProjectUser.Name, FormMethod.Get, null);}
    @Html.HiddenFor(x=>x.projectID)
    <input class="button" type="submit" value="Dodaj nowy wątek" style="width:667px"/>

@{Html.EndForm();}
<table class="inbox">
    <tr>
        <td class="label">
            Data utworzenia
        </td>
        <td class="label">
            Autor
        </td>
        <td class="label">
            Temat
        </td>
    </tr>
    @foreach (var item in Model.Topics)
    {
        <tr>
            <td class="edit">
                @item.AddDate
            </td>
            <td class="edit">
                @item.autorName
            </td>
            <td class="edit">
            @Html.ActionLink(item.Topic, MVC.ProjectUser.ActionNames.ShowTopic, MVC.ProjectUser.Name, new { topicId = item.Id }, null)
                
            </td>
        </tr>
    }
</table>



</div>
<div class="clear">
</div>
